# -*- coding: utf-8 -*-
# @Author: QX
# @File: globalContext.py

class g_context(object): #类继承
    _dic = {}  #内置属性
    def set_dict(self,key,value):
        self._dic[key] = value

    def set_by_dict(self,dic):
        self._dic.update(dic)

    def get_dict(self,key):
        return self._dic.get(key,None)

    def show_dict(self):
        return self._dic